We construct positive weak solutions of a class of semilinear elliptic equation which vanish in suitable trace sense on the boundary of a given smooth bounded N-dimensional domain, but which are singular at prescribed isolated points of the boundary. Similar constructions are carried out for solutions which are singular on any given embedded submanifold of the boundary.